package com.vhall.component.entity.room.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * 更新房间信息Api接口入参
 *
 * @author Admin
 */
@Data
public class UpdateRoomApiReqVO {
    @NotBlank(message = "name不能为空")
    @Length(max = 30, message = "直播间名称长度最多30")
    private String name;

    @NotBlank(message = "begin_time不能为空")
    @ParamName(value = "begin_time")
    @Pattern(regexp = "^((([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]+|[0-9]+[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29))\\s+([0-1]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$", message = "时间格式为2017-01-01 08:00:00")
    private String beginTime;

    private String topics;

    private String from;

    private String en;

    private String introduction;

    @ParamName(value = "room_id")
    private Integer roomId;

    @ParamName(value = "live_type")
    private Integer liveType;
}
